﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="controlling.aspx.cs" Inherits="TimeIt.beispiele.controlling" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Login-Site</title>
    <link rel="stylesheet" type="text/css" href="../style/scripte/spacss.css" />
    <link rel="stylesheet" type="text/css" href="../style/scripte/menu1css.css" />
    <link rel="stylesheet" type="text/css" href="../style/scripte/content.css" />
    <link rel="shortcut icon" href="../style/pictures/logo/iconlogo.png" />
    <style type="text/css">
        .style2
        {
            width: 530px;
        }
    </style>
</head>
<body>
    <div id="backgroundbody">
        <div id="templatecontent">
            <div id="content_top">
                <div id="menu_o_bg">
                </div>
                <div id="menu_u_bg">
                </div>
                <div id="content_body">
                    <div id="content_bottom">
                    </div>
                </div>
            </div>
            <div id="content_border">
                <div id="menu_o">
                    <!-- Menu_1 Roll_over and drop_down -->
                    <ul id="Navigation">
                        <li><a href=""></a></li>
                        <li><a href=""></a></li>
                        <li><a href="login.aspx">Logout</a></li>
                        <li><a href="help.aspx">Hilfe</a></li>
                        <li><a href="impressum.aspx">Impressum</a></li>
                    </ul>
                    <!-- Menu_1 Ende!! -->
                </div>
                <!-- Contentbereich!! -->
                <div id="hellocontent">
                        <p style="font-weight: 700; font-size: large">Willkommen, 
                        &nbsp;<asp:Label ID="UserName" runat="server" Text="User"></asp:Label>!</p>
                </div>
                <div id="editcontent">
                    <form id="form1" runat="server">
                    <div id="controlling">
                    </div>
                    <br />
                    Projektbezogene Zahlen:
                    <asp:ObjectDataSource ID="odsCProject" runat="server" SelectMethod="getAllDbMoreInfo"
                        TypeName="bll.clsProjectCollection"></asp:ObjectDataSource>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="odsCProject"
                        Height="16px" Width="802px" AllowPaging="True" PageSize="3" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                            <asp:BoundField DataField="Client" HeaderText="Client" SortExpression="Client" />
                            <asp:BoundField DataField="ContractPrice" HeaderText="ContractPrice" SortExpression="ContractPrice" />
                            <asp:BoundField DataField="ExternalHourlyRate" HeaderText="ExternalHourlyRate" SortExpression="ExternalHourlyRate" />
                            <asp:BoundField DataField="ExternalCosts" HeaderText="ExternalCosts" SortExpression="ExternalCosts" />
                            <asp:BoundField DataField="InternalHourlyRate" HeaderText="InternalHourlyRate" SortExpression="InternalHourlyRate" />
                            <asp:BoundField DataField="InternalCosts" HeaderText="InternalCosts" SortExpression="InternalCosts" />
                            <asp:BoundField DataField="Db" HeaderText="Db" SortExpression="Db" />
                        </Columns>
                    </asp:GridView>
                    <br />
                    Stundennachweise:
                    <br />
                    <asp:ObjectDataSource ID="odsAllTimes" runat="server" SelectMethod="getAllTimeSheet"
                        TypeName="bll.clsTimeSheetCollection"></asp:ObjectDataSource>
                    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        DataSourceID="odsAllTimes" Height="113px" PageSize="3" Width="802px">
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                            <asp:BoundField DataField="UserID" HeaderText="UserID" SortExpression="UserID" />
                            <asp:BoundField DataField="ProjectID" HeaderText="ProjectID" SortExpression="ProjectID" />
                            <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" 
                                DataFormatString="{0:dd/MM/yyyy}" />
                            <asp:BoundField DataField="Hours" HeaderText="Hours" SortExpression="Hours" />
                            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                            <asp:CheckBoxField DataField="Chargeable" HeaderText="Chargeable" SortExpression="Chargeable" />
                        </Columns>
                    </asp:GridView>
                    <br />
                    Mitarbeiter:
                    <br />
                    <asp:ObjectDataSource ID="odsUser" runat="server" SelectMethod="getAllUsers" TypeName="bll.clsUserCollection">
                    </asp:ObjectDataSource>
                    <asp:GridView ID="GridView3" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        DataSourceID="odsUser" Height="81px" PageSize="3" Width="802px">
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                            <asp:BoundField DataField="Position" HeaderText="Position" SortExpression="Position" />
                            <asp:BoundField DataField="InternalHourlyRate" HeaderText="InternalHourlyRate" SortExpression="InternalHourlyRate" />
                        </Columns>
                    </asp:GridView>
                    <br />
                 
                        <strong>
                    <br />
                    Neue Arbeitszeit eintragen: </strong>
                    <div id="insert_timesheet">
                        <table style="width: 100%;">
                            <tr>
                                <td class="style5" valign="bottom">
                                    Datum:
                                </td>
                                <td class="style2">
                                    <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="White"
                                        BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="104px"
                                        NextPrevFormat="FullMonth" OnSelectionChanged="Calendar1_SelectionChanged" Width="298px"
                                        Style="text-align: left; margin-left: 0px;">
                                        <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
                                        <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" />
                                        <OtherMonthDayStyle ForeColor="#999999" />
                                        <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                                        <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True"
                                            Font-Size="12pt" ForeColor="#333399" />
                                        <TodayDayStyle BackColor="#CCCCCC" />
                                    </asp:Calendar>
                                    <asp:Label ID="txtDate" runat="server" Text="Ausgewähltes Datum"></asp:Label>
                                </td>
                                <td class="style6">
                                    &nbsp;Projekt:<br />
                                    Stunden:&nbsp;
                                    <br />
                                    Beschreibung:<br />
                                    Anrechenbar:</td>
                                <td>
                                    <asp:TextBox ID="txtProject" runat="server"></asp:TextBox>
                                    <asp:TextBox ID="txtHours" runat="server"></asp:TextBox>
                                    <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
                                    <br />
                                    <asp:CheckBox runat="server" ID="checkChargeable" />
                                    <asp:Button ID="insertTime" runat="server" OnClick="btninsert_Click" Text="Zeit eintragen.."
                                        Width="102px" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style5">
                                    &nbsp;</td>
                                <td class="style2">
                        <asp:Label ID="checkMsg" runat="server"></asp:Label>
                                </td>
                                <td class="style6">
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </div>
                    </form>
                </div>
                <!-- Contentbereich Ende!! -->
                <div id="logo">
                </div>
                <div id="menu_u">
                    <!-- Menu_2 Roll_over -->
                    <!--       <ul id="Navigation2">
                <li><a href="">Techniken</a></li>
                <li><a href="">Verzeichnis</a></li>
                <li><a href="">Impressum</a></li>
            </ul> -->
                    <!-- Menu_2 end!! -->
                </div>
            </div>
        </div>
    </div>
</body>
</html>
